var t = require("../../api.js"), e = getApp();

Page({
    onLoad: function(a) {
        var i = this;
        e.pageOnLoad(this, a), wx.showLoading({
            title: "加载中"
        }), e.request({
            url: t.bargain.setting,
            success: function(t) {
                0 == t.code ? i.setData(t.data) : i.showLoading({
                    title: t.msg
                });
            },
            complete: function(t) {
                wx.hideLoading();
            }
        });
    }
});